package com.winbook.domainobjects;

import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;

public class WinCondition extends Postable{

	
	private String winCondition;
	private Timestamp timestamp;
	private String status;
	private List<Issue> issues;
	private List<Category> categories;
	private Wall wall;
	
	public WinCondition(User author, String winCondition)
	{
		super(author);
		this.winCondition = winCondition;
	}

	public String getWinCondition() {
		return winCondition;
	}

	public void setWinCondition(String winCondition) {
		this.winCondition = winCondition;
	}

	public Timestamp getTimestamp() {
		return timestamp;
	}

	public void setTimestamp(Timestamp timestamp) {
		this.timestamp = timestamp;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public List<Issue> getIssues() {
		return issues;
	}

	public void setIssues(List<Issue> issues) {
		this.issues = issues;
	}
	
	public void addIssue(Issue issue) 
	{
		if(issues==null)
			issues = new ArrayList<Issue>();
		
		issues.add(issue);
	}

	public List<Category> getCategories() {
		return categories;
	}

	public void setCategories(List<Category> categories) {
		this.categories = categories;
	}

	public Wall getWall() {
		return wall;
	}

	public void setWall(Wall wall) {
		this.wall = wall;
	}
	
	
	
	
}
